package com.cinc.mdm.modules.sequence.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.jeecg.common.aspect.annotation.Dict;
import org.jeecgframework.poi.excel.annotation.Excel;

import java.io.Serializable;

/**
 * @Description: 自增序列
 * @Author: jeecg-boot
 * @Date: 2023-08-31
 * @Version: V1.0
 */
@Data
@TableName("mdm_sequence")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "mdm_sequence对象", description = "自增序列")
public class MdmSequence implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "主键")
    private String id;
    /**
     * 序列类型
     */
    @Excel(name = "序列类型", width = 15, dicCode = "mdm_sequence_type")
    @Dict(dicCode = "mdm_sequence_type")
    @ApiModelProperty(value = "序列类型")
    private String seqType;
    /**
     * 序列类型值
     */
    @Excel(name = "序列类型值", width = 15)
    @ApiModelProperty(value = "序列类型值")
    private String seqVal;
    /**
     * 序列号
     */
    @Excel(name = "序列号", width = 15)
    @ApiModelProperty(value = "序列号")
    private Integer seqNo;
    /**
     * 租户ID
     */
    @Excel(name = "租户ID", width = 15)
    @ApiModelProperty(value = "租户ID")
    private Integer tenantId;
}
